package com.example.demo.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.socket.config.annotation.WebSocketConfigurer;
import org.springframework.web.socket.config.annotation.WebSocketHandlerRegistry;
import org.springframework.web.socket.server.standard.ServerEndpointExporter;

/**
 * @AUTHOR LYF
 * @DATE 2022/2/11
 * @VERSION 1.0
 * @DESC
 */
@Configuration
public class WebSocketConfig  { //implements WebSocketConfigurer
    @Bean
    ServerEndpointExporter serverEndpointExporter(){return new ServerEndpointExporter();}

//    @Override
//    public void registerWebSocketHandlers(WebSocketHandlerRegistry webSocketHandlerRegistry) {
//
//    }
}
